import styled from 'styled-components';
import logoPic from '../../static/images/nav-logo.png'
export const HeaderWrap = styled.div`
    height: 56px;
    background-color: #fff;
    position: relative;
    max-width: 1440px;
    min-width: 768px;
    margin: 0 auto;
`
export const Logo = styled.a`
    background: url(${logoPic});
    display: block;
    height: 56px;
    width: 100px;
    background-size: contain;
    position: absolute;
    top:0;
    left:0
`
export const Nav = styled.div`
    width: 960px;
    margin: 0 auto;
    height: 56px;
    font-size: 17px;
    line-height: 56px;
    .style-mode-btn {
        line-height: 20px;
        padding: 17px 10px;
        font-size: 24px;
        color: #969696;
    }
`

export const NavItem = styled.a`
    padding: 15px;
    color: #333;
    line-height: 26px;
    &.active {
        color: #ea6f5a
    }
    &.login {
        color: #969696;
        font-size: 15px;
    }
`
export const Addition = styled.div`
    position: absolute;
    top:0;
    right:0;
`
export const Button = styled.button`
    &.write-btn {
        float: right;
        width: 100px;
        height: 40px;
        line-height: 24px;
        margin: 8px 15px 0;
        border-radius: 20px;
        font-size: 15px;
        color: #fff;
        background-color: #ea6f5a;
        border: none;
    }
    &.sign-up {
        float: right;
        width: 80px;
        height: 38px;
        line-height: 24px;
        margin: 9px 5px 0 15px;
        border: 1px solid rgba(236,97,73,.7);
        border-radius: 20px;
        font-size: 15px;
        color: #ea6f5a;
        background-color: transparent;
    }
`
export const SearchWrapper = styled.div`
    float: left;
    position: relative;
    top: 9px;
    .search-btn {
        position: absolute;
        top: 5px;
        right: 5px;
        width: 30px;
        height: 30px;
        border-radius: 15px;
        color: #969696;
        line-height: 30px;
        text-align: center;
        &.focus {
            color: #ffffff;
            background: #969696;
        }
    };
`
export const Input = styled.input.attrs({
    placeholder: '搜索'
})`
    float: left;
    width: 180px;
    height: 38px;
    border-radius: 40px;
    font-size: 14px;
    border: 1px solid #eee;
    background: #eee;
    outline: none;
    padding: 0 40px 0 20px;
    &.focus {
        width: 260px;
    }
`
export const SearchInfo = styled.div`
	position: absolute;
	left: 0;
	top: 56px;
	width: 240px;
	padding: 0 20px;
	box-shadow: 0 0 8px rgba(0, 0, 0, .2);
	background: #fff;
`;

export const SearchInfoTitle = styled.div`
	margin-top: 20px;
	margin-bottom: 15px;
	line-height: 20px;
	font-size: 14px;
	color: #969696;
`;

export const SearchInfoSwitch = styled.span`
	float: right;
	font-size: 13px;
	cursor: pointer;
	.spin {
		display: block;
		float: left;
		font-size: 12px;
		margin-right: 2px;
		transition: all .2s ease-in;
		transform-origin: center center;
	}
`;

export const SearchInfoList = styled.div`
	overflow: hidden;
`;

export const SearchInfoItem = styled.a`
	display: block;
	float: left;
	line-height: 20px;
	padding: 0 5px;
	margin-right: 10px;
	margin-bottom: 15px;
	font-size: 12px;
	border: 1px solid #ddd;
	color: #787878;
	border-radius: 3px;
`;